package com.zch.innerclass;

/**
 * 成员内部类
 */
public class MemberInnerClass {
    public static void main(String[] args) {
        Outer03 outer03 = new Outer03();
        outer03.t1();
    }

}

class Outer03 {
    private int n1 = 10;
    public String name = "张三";

    class Inner03 {
        public void say() {
            System.out.println("n1 = " + n1 + ",name = " + name);
        }
    }

    public void t1() {
        Inner03 obj = new Inner03();
        obj.say();
    }
}
